﻿/**
 * Peter
 * Created by: Peter Development Team
 *    http://peter.codeplex.com/
 * 
 * GNU General Public License version 2 (GPLv2)
 *    http://peter.codeplex.com/license
 **/

namespace Peter.Common.Services
{
   /// <summary>
   /// Base file service interface.
   /// </summary>
   public interface IFileService
   {
      /// <summary>
      /// Gets or Sets the initial directory of the Open file dialog.
      /// </summary>
      string InitialDirectory { get; set; }

      /// <summary>
      /// Gets or Sets the Open file dialog title.
      /// </summary>
      string Title { get; set; }

      /// <summary>
      /// Gets or Sets the filter.
      /// </summary>
      string Filter { get; set; }

      /// <summary>
      /// Gets the file name selected.
      /// </summary>
      string FileName { get; }

      /// <summary>
      /// Shows the dialog.
      /// </summary>
      /// <returns>The dialog's result.</returns>
      bool ShowDialog ();
   }
}
